<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="org.fiel.FielConstants"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>FIEL - <bean:message key="menu.avisos"/></title>
        <jsp:include page="./meta.jsp" flush="false"/>
    </head>
    <body style="margin-top:0;margin-bottom:0;background-color:#cccccc">
        <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="750px" style="background-color:#ffffff">
            <tr>
                <td height="15%" valign="top">
                    <jsp:include page="./header.jsp" flush="false"/>
                </td>
            </tr>
            <tr>
                <td height="5%">
                    <jsp:include page="./menu.jsp" flush="false">
                        <jsp:param name="option" value="revista"/>
                    </jsp:include>
                </td>
            </tr>
            <tr>
                <td>
                    <table border="0" align="center" height="100%" width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="160px" valign="top">
                                <jsp:include page="left_menu_avisos.jsp"/>
                            </td>
                            <td valign="top" style="padding-bottom:10;padding-left:10;padding-top:10" height="75%">
                            
                                <form action="/adm/Avisos.do?method=view" onsubmit="return false;" method="post">
                                    <input type="hidden" name="editable" value="false">
        
                                    <p align="center">
                                        <input type="button" class="button" value="Ver Detalles" onclick="if(validar()){document.forms[0].action='/adm/Cargos.do?method=view';document.forms[0].submit()}">
                                        <input type="button" class="button" value="Editar" onclick="if(validar()){document.forms[0].action='/adm/Cargos.do?method=view';document.forms[0].editable.value='true';document.forms[0].submit()}">
                                        <input type="button" class="button" value="Eliminar" onclick="if(validar()){document.forms[0].action='/adm/Cargos.do?method=delete';document.forms[0].submit()}">
                                        <input type="reset" class="button" value="Borrar">
                                    </p>

                                    <table border="0" cellpadding="5" cellspacing="0" width="80%" align="center" style="font-family:arial;font-size:8pt">
                                        <tr>
                                            <th width="5%" style="background-color:#3399ca;color:#ffffff">
                                                &nbsp;
                                            </th>
                                            <th width="55%" style="background-color:#3399ca;color:#ffffff">
                                                Cargo
                                            </th>
                                        </tr>
                                    </table>
                                    <center>
                                        <div style="width: 81%;height: 182px;overflow: auto;" align="center">
                                            <table border="1" cellpadding="2" cellspacing="0" width="99%" align="center" style="font-family:arial;font-size:8pt;border-top:0px none #cccccc;border-bottom:1px solid #cccccc">
                                                <logic:iterate name='<%=FielConstants.AVISOS%>' scope="request" id="aviso">
                                                    <tr>
                                                        <td width="5%">
                                                            <input type="radio" name="id" value="<bean:write name="aviso" property="id"/>">
                                                        </td>
                                                        <td width="55%">
                                                            <bean:write name="aviso" property="nombreCliente"/>
                                                        </td>
                                                    </tr>
                                                </logic:iterate>
                                            </table>
                                        </div>
                                    </center>
                                </form>
                            
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="5%">
                    <jsp:include page="footer.jsp"/>
                </td>
            </tr>
        </table>
    </body>
</html>